import { Route } from 'react-router-dom';
// import PermissionGuard from '../common/permissionGuard';

// 管理后台页面组件 import（根据实际路径调整）
// import AdminDashboard from '../pages/admin/Dashboard';
// import ArticleList from '../pages/admin/article/ArticleList';
// import CategoryListAdmin from '../pages/admin/category/CategoryList';
// import TagListAdmin from '../pages/admin/tag/TagList';
// import BlogSetting from '../pages/admin/blog/BlogSetting';

const adminRoutes = [
    <Route
        key="admin-dashboard"
        path="/admin"
        // element={
        //     <PermissionGuard requireAuth>
        //         <AdminDashboard />
        //     </PermissionGuard>
        // }
    />,
    <Route
        key="admin-article-list"
        path="/admin/article/list"
        // element={
        //     <PermissionGuard requireAuth>
        //         <ArticleList />
        //     </PermissionGuard>
        // }
    />,
    <Route
        key="admin-category-list"
        path="/admin/category/list"
        // element={
        //     <PermissionGuard requireAuth>
        //         <CategoryListAdmin />
        //     </PermissionGuard>
        // }
    />,
    <Route
        key="admin-tag-list"
        path="/admin/tag/list"
        // element={
        //     <PermissionGuard requireAuth>
        //         <TagListAdmin />
        //     </PermissionGuard>
        // }
    />,
    <Route
        key="admin-blog-setting"
        path="/admin/blog/setting"
        // element={
        //     <PermissionGuard requireAuth>
        //         <BlogSetting />
        //     </PermissionGuard>
        // }
    />,
];

export default adminRoutes;
